//
//  KLineSQLite.h
//  Chart
//
//  Created by CaoJun on 13-11-6.
//
//

#ifndef __Chart__QKSQLite__
#define __Chart__QKSQLite__

#include "BaseSQLite.h"
#include "QK.h"

#include <vector>
#include <string>

namespace ytx
{
    class QKSQLite : public BaseSQLite {
    private:
        static std::vector<QKItem> transforDataQK(DBResult & dbResult);
    public:
        QKSQLite();
        virtual ~QKSQLite();
        bool insertData(std::string tableName, std::vector<QKItem> data);
        bool getDataFromDB(std::string tableName, std::vector<QKItem> * qkItems);
        bool updateData(std::string tableName, QKItem item);
        bool createQKDataTableIfNotExit(const std::string tabName);
        bool vacuumDB();
    };

}

#endif /* defined(__Chart__QKSQLite__) */
